/*
 * Filename:    InsuredMedicalDetailDaoImpl.java
 * Copyright:   2015 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2015-1-29
 */
package com.paic.mhis.hcpms.trust.intergration.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.paic.mhis.common.base.dto.PaginationDTO;
import com.paic.mhis.hcpms.trust.dto.InsureMedicalDetailDTO;
import com.paic.mhis.hcpms.trust.dto.IntegrityMedicalDTO;
import com.paic.mhis.hcpms.trust.intergration.dao.InsuredMedicalDetailDAO;
import com.paic.pafa.biz.dao.BaseDAO;

@Component("insuredMedicalDetailDao")
public class InsuredMedicalDetailDaoImpl extends BaseDAO implements InsuredMedicalDetailDAO {

	@Override
	public List<InsureMedicalDetailDTO> getMedicalDetail(PaginationDTO pdto) {
		return (List<InsureMedicalDetailDTO>) super._list("InsuredMedicalDetailDao.getMedicalDetailList", pdto);
	}

	@Override
	public int getCountMedicalDetailReport(Map<Object, Object> paramMap) {
		try {
			return this._getInt("getReportCount", paramMap);
		} catch (Exception e) {
			e.printStackTrace();
			return 0;
		}
	}

	@Override
	public List<IntegrityMedicalDTO> findMedicalDetailReport(Map<Object, Object> paramMap) {
		return (List<IntegrityMedicalDTO>) this._list("insureMedicalDetailReport", paramMap);
	}

	@Override
	public List<Map<String, Object>> queryIntegrityIllegalWarn(
			Map<String, Object> map) {
		return (List<Map<String, Object>>) this._list("insurance.queryIntegrityIllegalWarnDetails", map);
	}

	@Override
	public List<Map<String, Object>> queryIntegrityIllegalAudit(
			Map<String, Object> map) {
		return (List<Map<String, Object>>) this._list("insurance.queryIntegrityIllegalAudit", map);
	}

}
